package com.stone.framework.message.user;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;

public class RoleUserReqBody {

    @ApiModelProperty(value = "主键，新增时不使用")
    private Long id;

    @ApiModelProperty(value = "角色ID", required = true)
    @NotNull(message = "[roldId] {title.notNull}")
    private Long roleId;

    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "[userId] {title.notNull}")
    private Long userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

}
